package com.yjhb.android.sbz.fragment.mytask;

import android.view.View;

import com.yjhb.android.sbz.entity.MyTask;
import com.yjhb.android.sbz.enums.TaskStatus;
import com.yjhb.android.sbz.tool.Tool;

/**
 * 创建者 zx
 * 创建时间 2020/12/17 14:41
 */
public class UnCheckFragment extends MyTaskListFragment {
    private final String TAG = "UnCheckFragment";

    @Override
    public CharSequence getTitle() {
        return "待审核";
    }

    @Override
    protected void onLoadData(int size, int current) {
        presenter.getOrderList(TaskStatus.TASK_STATUS_SUBMIT.getStatus(), size, current);
    }

    @Override
    public void onViewClick(View view, String msg, int index, Object o) {
        MyTask myTask = (MyTask) o;
        if (msg.equals("btn1")) {
            Tool.startEditTaskDetailActivity(getContext(), myTask.getTaskId());
        }
    }
}
